
<div id="navigacia">
<a href="<?php echo base_url(); ?>/tasks/"> Zoznam úloh </a> |
<?php

//todo dokoncitt navigaciu podla typu uzivatela (vytiahnut zo session) + pouzit pri tom url helper
if ($this->session->userdata('logged')) {
  
    if ($this->session->userdata('fk_role') == 1) { // student
        
        
    } else if ($this->session->userdata('fk_role') == 2) {// ucitel
        ?>
        <a href="<?php echo base_url(); ?>/tasks/add"> Pridať zadanie </a> |
    <?php
    }
    

} else { 
?>
    <a href="<?php echo base_url(); ?>/auth/login"> Prihlásenie </a> |
    <a href="<?php echo base_url(); ?>/auth/register"> Registrácia </a> |
 <?php 
}
?>
    </div>

    <?php
   if ($this->session->userdata('logged')) {
     if ($this->session->userdata('fk_role') == 2) {// ucitel
           ?>
       <div id="csv">CSV: <a href="<?php echo base_url(); ?>/inout/import">Import</a>/<a
               href="<?php echo base_url(); ?>/inout/export">export</a></div>
       <?php
       }
   }


       ?>